const express = require("express");
var router = express.Router();
var QRCode = require('qrcode')
router.post("/qrcode", (req, res) => {
    var { data } = req.body
    QRCode.toDataURL(data, function (err, image) {
        res.send({
            msg: "成功",
            data: image,
        })
    })
})


module.exports = router